package zhh.tangbao.system.utils;


import cn.hutool.core.lang.UUID;
import org.apache.commons.lang3.RandomStringUtils;

/**
 * @author 粥灰灰
 * @created 2022/11/5
 * @version 1.0
 * @Description 随机字符串生成工具类
 */
public class ZhhStringUtil {

    public static String normalGenerate() {
        return UUID.fastUUID().toString();
    }

    /**
     * 生成32位长的随机字符串
     */
    public static String randomString32() {
        return UUID.fastUUID().toString(true);
    }

    public static String randomString16() {
        return RandomStringUtils.randomAlphanumeric(16);
    }

}
